#include<bits/stdc++.h>

using namespace std;

#define ll long long
#define MAXN 100005

int n,pos;

int a[MAXN];

int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    for(int i = 1;i <= n;i++){
        scanf("%d",&a[i]);
    }
    sort(a+1,a+n+1);
    pos = 1;
    for(int i = 2;i <= n;i++){
        if(a[pos] < a[i]){
            pos++;
        }
    }
    printf("%d",n-pos+1);


	return 0;
}
/*
1 1 2 2 3

1 2 3 4 5 6 7 8 9 10111213
1 4 3 2 5 4 3 6 7 4 5 6 8
1 2 3 3 4 4 4 5 5 6 6 7 8
1 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 1 1 1




*/
